<?php

class Api{
    function get($req){
        $id = $req->auth["id"];
        $res = array(
            "userId"=>$id,
            "expire"=>time(),
            "issued_at"=>time(),
            "token"=>"Bearer ".session_id()
        );
        return $res;
    }
}
